<?php foreach ($css as $cs): ?>
<?php use_stylesheet($cs->getCss()) ?>
<?php endforeach ?>
<table >
<tr><table cellspacing="0" cellpadding="10"  align="left" class="texte">
    <tr>
    <td><a href="agenda">Agenda</a></td>
    <td bgcolor=#00acc8>Mes Groupes</td>
    <td><a href="profil">Mon profil</a></td>
    <td><a href="apparence">Apparence du site</a></td>
    </tr>
</table></tr>
<tr><table bgcolor='#00acc8' width="100%" class="texte2">
  <thead>
    <tr>
      <th>Nom</th>
      <th>Descriptif</th>
      <th>blog</th>
      <th>Discussions</th>
      <th>Wiki</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($sf_guard_user_group_list as $groupe): ?>
    <tr>
      <td align="center"><?php echo $groupe->getsfGuardGroup()->getName() ?></td>
      <td align="center"><?php echo $groupe->getsfGuardGroup()->getDescription() ?></td>
      <?php $blog = $groupe->getblog() ?>
      <?php if($blog){ ?>
      <td align="center"><?php echo "<a href='article?id_blog=".$groupe->getblog()->getIdBlog()."'>" ?><?php echo $groupe->getblog()->getTitre(); echo "</a>"?></td>
      <?php } else { ?>
       <td align="center"><?php echo "<a href='blog/new?id_groupe=".$groupe->getGroupId()."'>" ?><?php echo "créer un blog ";echo "</a>"?></td>
       <?php } ?>
       <td align="center"><?php echo "<a href='discussion?id_groupe=".$groupe->getGroupId()."'>" ?><?php echo "".$groupe->getNombreDiscussion()." discussions";echo "</a>"?></td>
       <td align="center"><?php echo "<a href='wiki?id_groupe=".$groupe->getGroupId()."'>" ?><?php echo "wiki";echo "</a>"?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table></tr>
</table>
